const {
    Mysql
} = require('../../tools/index');
module.exports = async (ctx) => {
    let {
        vid
    } = ctx.query;
    let sql = `DELETE FROM video WHERE vid=${vid}`;
    try {
        await Mysql(sql);
        ctx.state.data = 'ok';
    } catch (error) {

    }
}